package lg.minecraft.plugin.cobblemoncore.config;

import lg.minecraft.plugin.cobblemoncore.LGCobblemonCore;
import lg.minecraft.plugin.library.config.LGBaseConfig;
import lombok.Getter;

/**
 * @author langle__
 * @version 1.0
 */
@Getter
public class MessageConfig extends LGBaseConfig {

    private String reloadConfig;

    private String yes;
    private String no;
    private String none;

    private String natureTypeFormat;
    private String attackUp;
    private String specialAttackUp;
    private String specialDefenseUp;
    private String defenseUp;
    private String speedUp;
    private String attackDown;
    private String specialAttackDown;
    private String specialDefenseDown;
    private String defenseDown;
    private String speedDown;
    private String balanced;

    public MessageConfig() {
        super(LGCobblemonCore.getInstance(), "message");
        this.saveDefault();
    }

    @Override
    public void load() {
        super.load();

        reloadConfig = getString("reload_config");

        yes = getString("true", "是");
        no = getString("false", "否");
        none = getString("none", "无");

        natureTypeFormat = getString("nature_type.format", "{increased_stat} {decreased_stat}");
        attackUp = getString("nature_type.attack_up", "§a攻击");
        specialAttackUp = getString("nature_type.special_attack_up", "§a特攻");
        specialDefenseUp = getString("nature_type.special_defense_up", "§a特防");
        defenseUp = getString("nature_type.defense_up", "§a防御");
        speedUp = getString("nature_type.speed_up", "§a速度");
        attackDown = getString("nature_type.attack_down", "§c攻击");
        specialAttackDown = getString("nature_type.special_attack_down", "§c特攻");
        specialDefenseDown = getString("nature_type.special_defense_down", "§c特防");
        defenseDown = getString("nature_type.defense_down", "§c防御");
        speedDown = getString("nature_type.speed_down", "§c速度");
        balanced = getString("nature_type.balanced", "§e平衡");
    }

}
